RIOT/projects/test_suite/tests/03-mutex_trylock_fail
Oliver Hahm 55bb484b22 [cpu arm_common]
* added usb ram as heap3
* some feuerware merge adaptation

[projects test_suite]

* fixed some test scripts
2012-11-08 11:37:29 -05:00

60 lines
813 B
Plaintext
Executable File

#!/usr/bin/expect
set timeout 5
spawn pseudoterm $env(PORT)
sleep 1
send "\n"
send "\n"
expect {
">" {}
timeout { exit 1 }
}
send "start_test\n"
expect {
"\[TEST_START\]" {}
timeout { exit 1 }
}
expect {
">" {}
timeout { exit 1 }
}
send "mutex_trylock_fail\n"
expect {
"main: locking mutex..." {}
timeout { exit 1 }
}
expect {
"main: creating thread..." {}
timeout { exit 1 }
}
expect {
"2nd: trying to lock mutex..." {}
timeout { exit 1 }
}
expect {
"2nd: done." {}
timeout { exit 1 }
}
expect {
"main: thread created. Unlocking mutex..." {}
timeout { exit 1 }
}
expect {
"main: mutex unlocked." {}
timeout { exit 1 }
}
send "end_test\n"
expect {
"\[TEST_END\]" {}
timeout { exit 1 }
}
puts "\nTest successful!\n"