]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Bug fix in aqcputest.c. pthread_join had wrong argument passed as first parameter.
authorMartin Molnar <molnam1@fel.cvut.cz>
Thu, 4 Dec 2008 16:09:22 +0000 (17:09 +0100)
committerMartin <molnam1@fel.cvut.cz>
Thu, 4 Dec 2008 16:09:22 +0000 (17:09 +0100)
resources/cpu_aquosa/tests/aqcputest.c

index 095593154863759bad24c46f57d848f8f4832acd..dcb530250b3858bbb622e7767bf063c25ac0c5d0 100644 (file)
@@ -15,8 +15,6 @@ void* work_thread()
 
 }
 
-
-
 int main()
 {
        frsh_vres_id_t vres;
@@ -56,11 +54,9 @@ int main()
                                work_thread, (void*) NULL);
        if (ret) PERROR_AND_EXIT(ret, "frsh_thread_create_and_bind");
        
-       while(1){
-               sleep(3);
-       };
-       pthread_join(thread.linux_tid, (void**) NULL);  
+       pthread_join(thread.pthread_id, (void**) NULL); 
        printf("Test PASSED!\n");
                
        return 0;       
 }
+