mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 12:18:12 +00:00
test: Use frrscript_unload
Signed-off-by: Donald Lee <dlqs@gmx.com>
This commit is contained in:
parent
fae19fa56d
commit
ad6e9b854d
@ -2443,6 +2443,8 @@ DEFUN(script,
|
||||
vty_out(vty, "p: %s\n", buf);
|
||||
vty_out(vty, "Script result: %d\n", ret);
|
||||
|
||||
frrscript_unload(fs);
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
@ -72,5 +72,7 @@ int main(int argc, char **argv)
|
||||
result = frrscript_call(fs, "bad_return3");
|
||||
assert(result == 1);
|
||||
|
||||
frrscript_unload(fs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user