the buildsystem will now pick up and link all test cases according to the layer, e.g. backend tests will automatically be linked against the backend + library solely.
27 lines
357 B
Text
27 lines
357 B
Text
|
|
TESTING "Error handling" ./test-errorstate
|
|
|
|
TEST "no error" <<END
|
|
return: 0
|
|
END
|
|
|
|
TEST "set error" set <<END
|
|
return: 0
|
|
END
|
|
|
|
TEST "query no error" get_no <<END
|
|
out: (nil)
|
|
return: 0
|
|
END
|
|
|
|
TEST "query error" get <<END
|
|
out: LUMIERA_ERROR_TEST:test error
|
|
return: 0
|
|
END
|
|
|
|
TEST "error cleared" get2 <<END
|
|
out: LUMIERA_ERROR_TEST:test error
|
|
out: (nil)
|
|
return: 0
|
|
END
|
|
|