View | Details | Raw Unified | Return to bug 277677
Collapse All | Expand All

(-)b/bin/rmdir/rmdir.c (-1 / +1 lines)
Lines 124-128 usage(void) Link Here
124
{
124
{
125
125
126
	(void)fprintf(stderr, "usage: rmdir [-pv] directory ...\n");
126
	(void)fprintf(stderr, "usage: rmdir [-pv] directory ...\n");
127
	exit(1);
127
	exit(2);
128
}
128
}
(-)b/bin/rmdir/tests/rmdir_test.sh (-3 / +3 lines)
Lines 35-42 invalid_usage_head() Link Here
35
35
36
invalid_usage_body()
36
invalid_usage_body()
37
{
37
{
38
	atf_check -s not-exit:0 -e match:"$usage_output" rmdir -p
38
	atf_check -s exit:2 -e match:"$usage_output" rmdir -p
39
	atf_check -s not-exit:0 -e match:"$usage_output" rmdir -v
39
	atf_check -s exit:2 -e match:"$usage_output" rmdir -v
40
}
40
}
41
41
42
atf_test_case no_arguments
42
atf_test_case no_arguments
Lines 47-53 no_arguments_head() Link Here
47
47
48
no_arguments_body()
48
no_arguments_body()
49
{
49
{
50
	atf_check -s not-exit:0 -e match:"$usage_output" rmdir
50
	atf_check -s exit:2 -e match:"$usage_output" rmdir
51
}
51
}
52
52
53
atf_init_test_cases()
53
atf_init_test_cases()

Return to bug 277677