diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/old/testsuite/gst-lint | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/old/testsuite/gst-lint b/tests/old/testsuite/gst-lint index 95c9e1adb..ce0875124 100755 --- a/tests/old/testsuite/gst-lint +++ b/tests/old/testsuite/gst-lint @@ -42,6 +42,8 @@ sub check_old_plugin(); sub check_signal_new(); sub check_gnuc_const(); sub check_caps(); +sub check_lib_deprecated(); +sub check_typo(); sub m_check_plugindir(); sub m_check_interfaces(); @@ -65,6 +67,8 @@ foreach $filename (<FIND>) { check_old_typefind(); check_old_plugin(); check_caps(); + check_lib_deprecated(); + check_typo(); # less important stuff @@ -458,3 +462,23 @@ sub check_caps() } } +# +# Check for use of deprecated functions +# +sub check_lib_deprecated() +{ + if (grep { /bzero/ } @lines) { + print "E: change bzero() to memset()\n"; + } +} + +# +# Check for typos +# +sub check_typo() +{ + if (grep { /;\s*;\s*$/ } @lines) { + print "W: typo? \";;\"\n"; + } +} + |