diff --git a/userspace/libsinsp/sinsp_test.cpp b/userspace/libsinsp/sinsp_test.cpp deleted file mode 100644 index d2d81363d3..0000000000 --- a/userspace/libsinsp/sinsp_test.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -/* -Copyright (C) 2023 The Falco Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -*/ - -#include -#include "sinsp.h" - -TEST(inspector,get_proc_by_invalid_tid) -{ - sinsp inspector; - EXPECT_TRUE(NULL == inspector.get_process(-100)); -} - -TEST(inspector,get_proc_by_valid_tid) -{ - sinsp inspector; - EXPECT_TRUE(NULL == inspector.get_process(-100)); - sinsp_procinfo newpi(&inspector); - newpi.m_tgid = -100; - inspector.m_proctable[-100] = newpi; - - EXPECT_TRUE(NULL != inspector.get_process(-100)); -}