1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2025-07-11 20:29:23 +00:00

Victime boloss

This commit is contained in:
2017-05-29 19:09:19 +02:00
parent d85f4db5cc
commit 9b3938894d
4 changed files with 14 additions and 8 deletions

View File

@ -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
View File

@ -0,0 +1,2 @@
PS1=sli->
PS2=sony