Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElinor Fung <elfung@microsoft.com>2021-09-10 23:58:40 +0300
committerGitHub <noreply@github.com>2021-09-10 23:58:40 +0300
commit01923f426120cb2020c4dede9f6573a0e5cd9ab1 (patch)
tree4e1ded39094809438bb29b5af69e6e598fb146ca /src/tests/baseservices
parent84c6051e343e5a4276236636b7c450fdb6bb7ece (diff)
Remove unused test libraries in baseservices/threading (#58668)
Diffstat (limited to 'src/tests/baseservices')
-rw-r--r--src/tests/baseservices/threading/regressions/17360/AVHelper.csproj11
-rw-r--r--src/tests/baseservices/threading/regressions/17360/avhelper.cs39
-rw-r--r--src/tests/baseservices/threading/stress/sudoku/Stack.csproj11
-rw-r--r--src/tests/baseservices/threading/stress/sudoku/SudokuInterfaces.csproj13
-rw-r--r--src/tests/baseservices/threading/stress/sudoku/isudokuboard.cs24
-rw-r--r--src/tests/baseservices/threading/stress/sudoku/isudokugenerator.cs20
-rw-r--r--src/tests/baseservices/threading/stress/sudoku/isudokusolver.cs17
-rw-r--r--src/tests/baseservices/threading/stress/sudoku/stack.cs104
-rw-r--r--src/tests/baseservices/threading/threadstatic/ThreadStatic04Helper.csproj11
-rw-r--r--src/tests/baseservices/threading/threadstatic/threadstatic04helper.cs28
10 files changed, 0 insertions, 278 deletions
diff --git a/src/tests/baseservices/threading/regressions/17360/AVHelper.csproj b/src/tests/baseservices/threading/regressions/17360/AVHelper.csproj
deleted file mode 100644
index d35b593d994..00000000000
--- a/src/tests/baseservices/threading/regressions/17360/AVHelper.csproj
+++ /dev/null
@@ -1,11 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>Library</OutputType>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <CLRTestKind>SharedLibrary</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="avhelper.cs" />
- </ItemGroup>
-</Project>
diff --git a/src/tests/baseservices/threading/regressions/17360/avhelper.cs b/src/tests/baseservices/threading/regressions/17360/avhelper.cs
deleted file mode 100644
index ea02a4e1f45..00000000000
--- a/src/tests/baseservices/threading/regressions/17360/avhelper.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-using System;
-using System.Runtime.InteropServices;
-using System.Reflection;
-using System.Threading;
-
-namespace AVHelper
-{
- public interface ICreateAV
- {
- void SpinThread();
- int ThreadName();
- }
-
- public class CreateAV : ICreateAV
- {
- public String myAV;
-
- public CreateAV(){}
-
- public void SpinThread()
- {
- myAV = "Created a new String -- Let's get an AV";
- Console.WriteLine("Running SpinThread");
- }
-
- public int ThreadName()
- {
- Console.WriteLine(myAV);
- return 100;
- }
-
- ~CreateAV()
- {
- Thread.Sleep(Timeout.Infinite);
- }
- }
-}
diff --git a/src/tests/baseservices/threading/stress/sudoku/Stack.csproj b/src/tests/baseservices/threading/stress/sudoku/Stack.csproj
deleted file mode 100644
index bf1e57df3b0..00000000000
--- a/src/tests/baseservices/threading/stress/sudoku/Stack.csproj
+++ /dev/null
@@ -1,11 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>Library</OutputType>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <CLRTestKind>SharedLibrary</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="stack.cs" />
- </ItemGroup>
-</Project>
diff --git a/src/tests/baseservices/threading/stress/sudoku/SudokuInterfaces.csproj b/src/tests/baseservices/threading/stress/sudoku/SudokuInterfaces.csproj
deleted file mode 100644
index ae3655734c5..00000000000
--- a/src/tests/baseservices/threading/stress/sudoku/SudokuInterfaces.csproj
+++ /dev/null
@@ -1,13 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>Library</OutputType>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <CLRTestKind>SharedLibrary</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="isudokuboard.cs" />
- <Compile Include="isudokugenerator.cs" />
- <Compile Include="isudokusolver.cs" />
- </ItemGroup>
-</Project>
diff --git a/src/tests/baseservices/threading/stress/sudoku/isudokuboard.cs b/src/tests/baseservices/threading/stress/sudoku/isudokuboard.cs
deleted file mode 100644
index 52ee95414ed..00000000000
--- a/src/tests/baseservices/threading/stress/sudoku/isudokuboard.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// Author: JeffSchw
-// Date: 2/21/2006
-
-//Interface for the Board
-//The Board returns pieces currently held, including the pieces that have been guessed so far.
-
-using System;
-using System.Collections;
-
-public interface ISudokuBoard<T>
-
-{
- int Dimension{get;} //Returns the Board dimension (since its always sq., only one value is returned)
- IEnumerable Tracer{get;} //Trace functionality for debugging
- bool PopulateBoard(T[,] rawData); //Populates the Board with generated puzzle
- T[] GetRow(int xcoord); //Returns the Row values for given co-ords
- T[] GetCol(int ycoord); //Returns the Column values for given co-ords
- T[] GetShortRegion(int xcoord, int ycoord); //Returns the 3x3 matrix for given co-ords
- bool SetValue(int xcoord, int ycoord, T value); //Sets Value for a given set of co-ordinates
- T GetValue(int xcoord, int ycoord); //Returns Value for a given set of co-ordinates
- bool Clear(); //clears only user pieces
-}
diff --git a/src/tests/baseservices/threading/stress/sudoku/isudokugenerator.cs b/src/tests/baseservices/threading/stress/sudoku/isudokugenerator.cs
deleted file mode 100644
index 67662b9cfc6..00000000000
--- a/src/tests/baseservices/threading/stress/sudoku/isudokugenerator.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// Author: JeffSchw
-// Date: 2/21/2006
-//
-// The SudokuGenerator should produce a valid Sudoku board.
-// Valid Sudoku boards have the following properties:
-// 1. Are solvable (ie. have a solution)
-// 2. Are square (ie. height and width are the same)
-// 3. Dimensions have an integral root (ie. the sqrt of the width is integral)
-// 4. The board is broken down into regions, rows, and columns. Each region/row/column
-// must be able to contian 1-9 with no duplicates.
-
-using System;
-
-public interface ISudokuGenerator<T>
-{
- // generate a valid sudoku board. Allow for varying the difficultiy (0-9)
- T[,] Generate(int dimension, int difficulty, int randSeed);
-}
diff --git a/src/tests/baseservices/threading/stress/sudoku/isudokusolver.cs b/src/tests/baseservices/threading/stress/sudoku/isudokusolver.cs
deleted file mode 100644
index f074c47f8d2..00000000000
--- a/src/tests/baseservices/threading/stress/sudoku/isudokusolver.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// Author: SneshaA
-// Date: 3/03/2006
-
-//Interface for the Solver
-//Solver guesses pieces to be placed on the Board
-
-using System;
-
-public interface ISudokuSolver<T>
-{
- ISudokuBoard<int> Board {set;}
- bool Guess{get; set;} //Sets Solver with Guess token (since only one solver can guess for a given board)
- void Solve(); //Solves given Board
- int Seed{get; set;} //use default, if check for set returns false
-}
diff --git a/src/tests/baseservices/threading/stress/sudoku/stack.cs b/src/tests/baseservices/threading/stress/sudoku/stack.cs
deleted file mode 100644
index a5fd24e3b20..00000000000
--- a/src/tests/baseservices/threading/stress/sudoku/stack.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-/***************************
- * Stack.cs
- * Author: Alina Popa
- * Date: 11/5/2008
- * Description: Simple stack class that holds items of type T and has the following methods:
- * - Push
- * - Pop
- * - Peek
- * - GetItemAt(index) -- for iterating
- **************************/
-
-using System;
-
-public class Stack<T>
-{
- private const int DEFAULT_CAPACITY = 30;
- private T[] objArray;
- private int capacity;
- private int size;
-
- public Stack(int initialCapacity)
- {
- if (initialCapacity <= 0)
- throw new System.Exception("Stack initial capacity should be a positive number");
-
- objArray = new T[initialCapacity];
- size = 0;
- capacity = initialCapacity;
- }
-
- public Stack()
- {
- objArray = new T[DEFAULT_CAPACITY];
- size = 0;
- capacity = DEFAULT_CAPACITY;
- }
-
- //Put item at the end
- public void Push(T item)
- {
- if(size == capacity)
- {
- ExpandArray();
- }
- objArray[size] = item;
- size ++;
- }
-
- //Pop the last item
- public T Pop()
- {
- if (size <= 0)
- throw new System.Exception("Empty stack");
-
- size--;
- return objArray[size];
- }
-
- //Get the last item, without removing it from stack
- public T Peek()
- {
- if (size <= 0)
- throw new System.Exception("Empty stack");
-
- return objArray[size-1];
- }
-
- public int Count
- {
- get
- {
- return size;
- }
- }
-
- //Returns the item in a given position
- public T GetItemAt(int index)
- {
- if ((index < 0) || (index > size - 1))
- {
- throw new System.Exception("Invalid index");
- }
-
- return objArray[index];
- }
-
- //Doubles the capacity of the array
- private void ExpandArray()
- {
- int newCapacity = 2 * capacity;
- T[] newArray = new T[newCapacity];
-
- //copy objArray in newArray
- for (int i = 0; i < capacity; i++)
- {
- newArray[i] = objArray[i];
- }
- objArray = newArray;
- capacity = newCapacity;
- }
-}
-
diff --git a/src/tests/baseservices/threading/threadstatic/ThreadStatic04Helper.csproj b/src/tests/baseservices/threading/threadstatic/ThreadStatic04Helper.csproj
deleted file mode 100644
index 39b5af41f8f..00000000000
--- a/src/tests/baseservices/threading/threadstatic/ThreadStatic04Helper.csproj
+++ /dev/null
@@ -1,11 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>Library</OutputType>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <CLRTestKind>SharedLibrary</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="threadstatic04helper.cs" />
- </ItemGroup>
-</Project>
diff --git a/src/tests/baseservices/threading/threadstatic/threadstatic04helper.cs b/src/tests/baseservices/threading/threadstatic/threadstatic04helper.cs
deleted file mode 100644
index 1b8ecf8b3c3..00000000000
--- a/src/tests/baseservices/threading/threadstatic/threadstatic04helper.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-using System;
-
-public class LIA
-{
- public LIA(byte[] zaoption, object[] zacnttb, string[] zaprgnm, string zaclsnm, Type zatype)
- {
- }
-}
-
-public sealed class ILI
-{
-#pragma warning disable 414
- [ThreadStaticAttribute()]
- static RCB rcbsave;
-#pragma warning restore 414
- public ILI(int zapgnum, LIA zalia)
- {
- rcbsave = null;
- }
-}
-
-internal
-class RCB
-{
-}
-