mirror of
https://gitlab.com/klmp200/fish.git
synced 2025-07-11 20:29:23 +00:00
Victime boloss
This commit is contained in:
@ -3,14 +3,13 @@
|
||||
#include "../fish_shell/fish_settings.h"
|
||||
|
||||
TEST(free_settings_Test, freeSettings){
|
||||
Settings *s1 = getSettings();
|
||||
Settings *s2 = getSettings();
|
||||
Settings *s = getSettings();
|
||||
|
||||
freeSettings(s1);
|
||||
ASSERT_STREQ(s->PS1, "->");
|
||||
|
||||
ASSERT_STRNE(s1->PS1, s2->PS1);
|
||||
freeSettings(s);
|
||||
|
||||
freeSettings(s2);
|
||||
ASSERT_STRNE(s->PS1, "->");
|
||||
}
|
||||
|
||||
TEST(extract_variable_Test, extractVariable){
|
||||
@ -25,4 +24,4 @@ TEST(get_settings_Test, getSettings){
|
||||
ASSERT_FALSE(s ==NULL);
|
||||
ASSERT_FALSE(s->passwd == NULL);
|
||||
freeSettings(s);
|
||||
}
|
||||
}
|
||||
|
2
fish_shell_tests/fishrc
Normal file
2
fish_shell_tests/fishrc
Normal file
@ -0,0 +1,2 @@
|
||||
PS1=sli->
|
||||
PS2=sony
|
Reference in New Issue
Block a user