pthread_barrier_t barrier;
 
-#define NFORKS 1000
+#define NFORKS 10
 
 /* Used to create a conditional breakpoint that always fails.  */
 volatile int zero;
   pthread_t bp_thread;
 
   /* Don't run forever.  */
-  //  alarm (180);
+  alarm (180);
 
   pthread_barrier_init (&barrier, NULL, NTHREADS + 1);
 
 
 
     set saved_gdbflags $GDBFLAGS
     set GDBFLAGS [concat $GDBFLAGS " -ex \"set non-stop on\""]
-    set GDBFLAGS [concat $GDBFLAGS " -ex \"set sysroot /\""]
     clean_restart $binfile
     set GDBFLAGS $saved_gdbflags
 
        }
        -re "Inferior $decimal \(\[^\r\n\]+\) exited normally" {
            incr fork_count
-           exp_continue
            if {$fork_count <= 100} {
                exp_continue
            } else {
 }
 
 foreach_with_prefix cond_bp_target {1 0} {
-    foreach_with_prefix detach_on_fork {"off" "off"} {
+    foreach_with_prefix detach_on_fork {"on" "off"} {
        do_test $cond_bp_target $detach_on_fork
 
        # Disable "off" for now.  The test does pass with